#ifndef __PACKETINFO_H__
#define __PACKETINFO_H__

struct field {
    char*		name;
    struct field*	next;
};

struct clause {
    char*		name;
    char*		type;
    int			size;
    int			digits;
    struct clause*	next;
};

struct table {
    char*		name;
    struct field*	pkey;
    struct field*	other;
    struct clause*	clause;
    struct table*	next;
};

struct general {
    int			sec_level;
    char*		ver_packet;
    char*		ver_system;
    char*		from;
    char*		to;
    int			number;
    int			prev;
};

struct packetinfo {
    struct general*	general;
    struct table*	table;
};

int packetinfo(struct packetinfo* info);

#endif /* __PACKETINFO_H__ */
